package com.ruoyi.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.ruoyi.common.core.domain.entity.CommonEntity;
import com.ruoyi.common.core.domain.entity.SysRole;
import com.ruoyi.common.utils.SecurityUtils;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author wux
 * @date 2023/5/11 11:55
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysUserVO {
    @ApiModelProperty(value = "id")
    private Long id;
    @ApiModelProperty(value = "账号")
    private String account;
    @ApiModelProperty(value = "姓名")
    private String name;
    @ApiModelProperty(value = "密码")
    @JsonIgnore
    private String password;
    @ApiModelProperty(value = "手机号码")
    private String phone;
    @ApiModelProperty(value = "生产线编码")
    private String lineCode;
    @ApiModelProperty(value = "帐号状态（0正常 1停用）")
    private Integer status;
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private Integer delFlag;
    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "用户角色")
    private List<SysRole> roles;

    @ApiModelProperty(value = "是否管理员")
    private boolean adminFlag;

    @ApiModelProperty(value = "用户渠道 1运营端  2客户端")
    private Integer channel;

    private List<SysProject> projectList;

    @ApiModelProperty(value = "创建人")
    private Long createBy ;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateBy ;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
